package edu.scau.misp.backend_module.mapper;

import edu.scau.misp.backend_module.domain.DealDishAddition;
import edu.scau.misp.backend_module.domain.DishAddition;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DealDishAdditionMapper {
    /**
     *根据ID查询
     * @param dealDishAdditionId
     * @return
     */
    public DealDishAddition getDealDishAdditionById(Long dealDishAdditionId);

    /**
     *列出所有数据
     * @return
     */

    public List<DealDishAddition> listAllDealDishAddition();


    /**
     *根据对象查询符合条件的所有对象
     * @param dealDishAddition
     * @return
     */

    public List<DealDishAddition> selectDealDishAdditionList(DealDishAddition dealDishAddition);

    /**
     *插入数据
     * @param dealDishAddition
     * @return
     */
    public int insertDealDishAddition(DealDishAddition dealDishAddition);

    /**
     *修改数据
     * @param dealDishAddition
     * @return
     */
    public int updateDealDishAddition(DealDishAddition dealDishAddition);

    /**
     *删除数据
     * @param dealDishAdditionId
     * @return
     */
    public int deleteDealDishAdditionById(Long dealDishAdditionId);
}
